/**
 * @file qmc5883l.h
 * @brief QMC5883L Magnetometer driver for H743-V2
 */

#ifndef __QMC5883L_H
#define __QMC5883L_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

typedef struct {
    float mag_x;
    float mag_y;
    float mag_z;
    uint64_t timestamp;
} QMC5883L_Data_t;

int QMC5883L_Init(void);
int QMC5883L_ReadData(QMC5883L_Data_t *data);

#ifdef __cplusplus
}
#endif

#endif /* __QMC5883L_H */

